<ul class="dropdown-menu" role="menu">
  {% for language in page.languages %}
    <li role="menuitem">
      <a href="/{{ language.url_substitution }}" title="{{ language.name }}" data-code="{{ language.code }}">{{ language.name }}</a>
    </li>
    {% endfor %}
</ul>